package com.liuyi.netty.mqtt.processed.store;

import com.liuyi.netty.mqtt.common.MqttConst;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * mqtt 客户 session
 */
@Data
public class MqttSession {

    private String clientId;

    /**
     * 状态
     */
    private MqttConst.SessionState state;

    /**
     * 下线时间
     */
    private LocalDateTime offlineTime;

    /**
     * store session 的机器在 cluster 中的标识
     */
    private String clusterStoreHost;
}
